package com.oa.ch.service;

import java.util.List;

import com.oa.ch.dao.AttDao;
import com.oa.domain.Attendance;
import com.oa.domain.Dept;
import com.oa.domain.Emp;

public class AttServiceImpl implements AttService {

	private AttDao attDao;
	private List<Attendance> atts;
	
	/**根据条件得到考勤信息**/
	public List<Attendance> getAttByExample(Attendance attendance) {
		atts = attDao.getAttByExample(attendance);
		return atts;
	}
	
	/**根据员工id得到员工信息**/
	public Emp getEmpById(Long empno) {
		return attDao.getEmpById(empno);
	}

	/**根据条件得到部门信息**/
	public List<Dept> getDeptsByExample(Dept dept) {
		return attDao.getDeptsByExample(dept);
	}
	
	public AttDao getAttDao() {
		return attDao;
	}



	public void setAttDao(AttDao attDao) {
		this.attDao = attDao;
	}


	public List<Attendance> getAtts() {
		return atts;
	}


	public void setAtts(List<Attendance> atts) {
		this.atts = atts;
	}

	


	

	

}
